package com.chunfeng.mypen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chunfeng.mypen.entity.Topic;
import com.chunfeng.mypen.result.JsonRequest;
import com.chunfeng.mypen.vo.TopicVo;

import java.util.List;

/**
 * @Description: 题目service接口
 * @author: 小雷
 * @createTime: 2023-11-14 00:11:44
 */
public interface TopicService extends IService<Topic> {
    //条件查询所有题目
    JsonRequest<List<TopicVo>> lookTopic(Topic topic);

    //新增题目信息
    JsonRequest<Integer> addTopic(Topic topic);

    //修改题目信息
    JsonRequest<Integer> updateTopic(Topic topic);

    //删除题目
    JsonRequest<Integer> deleteTopic(List<String> ids);
}
